<style lang="scss" scoped>
    .tool{
        width:1200px;
        height: 430px;
        margin: -40px auto 0;
        position: relative;
    }
    .container{
        width:960px;
        z-index: 10;
        height: 80px;
        left: 0;right: 0;
        margin: auto;
        position:absolute;
        z-index: 1;
        background: #FFFFFF;
        box-shadow: 0 2px 4px 0 rgba(199,209,222,0.67);
        border-radius: 40.5px;
        .menu{
            width:90%;
            margin:auto;
            display: flex;
            justify-content: space-around;
            
            .item{
                position: relative;
                cursor: pointer;
                width:100%;
                // padding: 0 60px ;
                padding-left: 30px;
                text-align: center;
                svg{
                    width:50px;
                    height: 50px;
                    position:absolute;
                    left: 38px;
                    top: 15px;
                }
                &::before{
                    content: attr(txt);
                    line-height: 80px;
                }
                &.active::before{
                    color: var(--blue);
                }
                &::after{
                    content: "";
                    width:2px;
                    height: 60px;
                    display: block;
                    background: #ddd;
                    position:absolute;
                    left: 0;
                    top: 10px
                }
                &:first-child::after{
                    content: none;
                }
            }
        }
    }
    .pro{
        padding: 100px 0 20px;
        h2{
            margin-bottom: 20px;
            text-align: center;
        }
        .input-group{
            width:600px;
            margin:20px auto;
            .seach{
                background: var(--blue);
                color: #fff;
                cursor: pointer;
                border:0;
            }
        }
    }
    .year{
        justify-content: space-around;
        img{
            border:1px solid #ccc;
            width:450px;
            overflow: hidden;
            border-radius: 4px;
            cursor: pointer;
            &:hover{
                box-shadow: 0 0 8px -3px #0E87FF;
                border-color: #0E87FF;
            }
        }
    }
    .calc{
        display: flex;
        justify-content: space-between;
        .item{
            margin: 20px 0;
        }
        h4{
            float: left;
            width:100px;
            line-height: 10px;
            margin-right: 10px;
        }
        select{
            width:150px;
        }
        .count{
            &>div{
                width:220px;
                margin: 20px 0;
                b{
                    line-height: 30px;
                }
                h5{
                    width:120px;
                    float: left;
                }
            }
            button{
                width:80%;
                background: var(--blue);
                color: #fff;
                font-size: 16px;
                img{
                    display: block;
                    float: left;
                    padding-top:3px;
                }
            }
        }
        a{
            display: block;
            clear: both;
            color: var(--blue);
            text-decoration: underline;
            width:220px;
            padding-left: 18px;
            margin:30px 0;
        }
    }
    #seach{
        margin: 50px auto;
        width:700px;
        height: 50px;
        box-shadow:0px 2px 8px 4px rgba(5,109,212,0.1);
        border-radius:4px;
        overflow: hidden;
        input{
            padding: 10px 10px 10px 30px;
            box-sizing: border-box;
            width:550px;
            outline: none;
            border:0;
        }
        button{
            background: #3D85FD;
            color: #fff;
            width:150px;
            border:0;
            outline: 0;
            height:50px;
            font-size: 18px;
            border-radius: 0;
        }
    }
    .trademark_link{
        text-decoration: underline;
        color: #0E87FF;
        text-align: center;
        line-height: 60px;
        display: block;
        font-size: 18px;
    }
</style>
<style>
.fj .swal-button-container{
    display: block
}
.fj .swal-button{
    width:90%;
    line-height: 25px;
    margin: auto;
    display: block;
    font-weight: normal;
    font-size: 16px;
    background: url('../assets/fj_btn.jpg');
}
</style>

<template>
    <div class="tool">
        <a id="tool"></a>
        <div class="container">
            <div class="menu">
                <div class="item" :class="{active:!hover}" txt='专利计算器' @mouseenter="hover=0" >
                    <svg viewBox="0 0 50 50" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
                        <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
                            <path d="M34.2191781,43 L11.6164384,43 C9.58219178,43 8,41.425 8,39.4 L8,10.6 C8,8.575 9.58219178,7 11.6164384,7 L37.3835616,7 C39.4178082,7 41,8.575 41,10.6 L41,36.7 C41,37.375 40.5479452,37.825 39.869863,37.825 C39.1917808,37.825 38.739726,37.375 38.739726,36.7 L38.739726,10.6 C38.739726,9.925 38.0616438,9.25 37.3835616,9.25 L11.6164384,9.25 C10.9383562,9.25 10.260274,9.925 10.260274,10.6 L10.260274,39.4 C10.260274,40.075 10.9383562,40.75 11.6164384,40.75 L34.2191781,40.75 C34.8972603,40.75 35.3493151,41.2 35.3493151,41.875 C35.3493151,42.55 34.8972603,43 34.2191781,43 Z M34.6712329,18.925 L14.3287671,18.925 C13.6506849,18.925 13.1986301,18.475 13.1986301,17.8 L13.1986301,13.3 C13.1986301,12.625 13.6506849,12.175 14.3287671,12.175 L34.6712329,12.175 C35.3493151,12.175 35.8013699,12.625 35.8013699,13.3 L35.8013699,17.8 C35.8013699,18.475 35.3493151,18.925 34.6712329,18.925 Z M15.4589041,16.675 L33.5410959,16.675 L33.5410959,14.425 L15.4589041,14.425 L15.4589041,16.675 Z M18.1712329,25.45 L15.2328767,25.45 C14.5547945,25.45 14.1027397,25 14.1027397,24.325 L14.1027397,22.525 C14.1027397,21.85 14.5547945,21.4 15.2328767,21.4 L18.3972603,21.4 C19.0753425,21.4 19.5273973,21.85 19.5273973,22.525 L19.5273973,24.325 C19.3013699,25 18.8493151,25.45 18.1712329,25.45 Z M26.0821918,25.45 L22.9178082,25.45 C22.239726,25.45 21.7876712,25 21.7876712,24.325 L21.7876712,22.525 C21.7876712,21.85 22.239726,21.4 22.9178082,21.4 L26.0821918,21.4 C26.760274,21.4 27.2123288,21.85 27.2123288,22.525 L27.2123288,24.325 C27.2123288,25 26.760274,25.45 26.0821918,25.45 Z M33.7671233,25.45 L30.6027397,25.45 C29.9246575,25.45 29.4726027,25 29.4726027,24.325 L29.4726027,22.525 C29.4726027,21.85 29.9246575,21.4 30.6027397,21.4 L33.7671233,21.4 C34.4452055,21.4 34.8972603,21.85 34.8972603,22.525 L34.8972603,24.325 C34.8972603,25 34.4452055,25.45 33.7671233,25.45 Z M18.1712329,31.525 L15.2328767,31.525 C14.5547945,31.525 14.1027397,31.075 14.1027397,30.4 L14.1027397,28.6 C14.1027397,27.925 14.5547945,27.475 15.2328767,27.475 L18.3972603,27.475 C19.0753425,27.475 19.5273973,27.925 19.5273973,28.6 L19.5273973,30.4 C19.3013699,31.075 18.8493151,31.525 18.1712329,31.525 Z M26.0821918,31.525 L22.9178082,31.525 C22.239726,31.525 21.7876712,31.075 21.7876712,30.4 L21.7876712,28.6 C21.7876712,27.925 22.239726,27.475 22.9178082,27.475 L26.0821918,27.475 C26.760274,27.475 27.2123288,27.925 27.2123288,28.6 L27.2123288,30.4 C27.2123288,31.075 26.760274,31.525 26.0821918,31.525 Z M33.7671233,31.525 L30.6027397,31.525 C29.9246575,31.525 29.4726027,31.075 29.4726027,30.4 L29.4726027,28.6 C29.4726027,27.925 29.9246575,27.475 30.6027397,27.475 L33.7671233,27.475 C34.4452055,27.475 34.8972603,27.925 34.8972603,28.6 L34.8972603,30.4 C34.8972603,31.075 34.4452055,31.525 33.7671233,31.525 Z M18.1712329,37.825 L15.2328767,37.825 C14.5547945,37.825 14.1027397,37.375 14.1027397,36.7 L14.1027397,34.9 C14.1027397,34.225 14.5547945,33.775 15.2328767,33.775 L18.3972603,33.775 C19.0753425,33.775 19.5273973,34.225 19.5273973,34.9 L19.5273973,36.7 C19.3013699,37.15 18.8493151,37.825 18.1712329,37.825 Z M26.0821918,37.825 L22.9178082,37.825 C22.239726,37.825 21.7876712,37.375 21.7876712,36.7 L21.7876712,34.9 C21.7876712,34.225 22.239726,33.775 22.9178082,33.775 L26.0821918,33.775 C26.760274,33.775 27.2123288,34.225 27.2123288,34.9 L27.2123288,36.7 C27.2123288,37.15 26.760274,37.825 26.0821918,37.825 Z M33.7671233,37.825 L30.6027397,37.825 C29.9246575,37.825 29.4726027,37.375 29.4726027,36.7 L29.4726027,34.9 C29.4726027,34.225 29.9246575,33.775 30.6027397,33.775 L33.7671233,33.775 C34.4452055,33.775 34.8972603,34.225 34.8972603,34.9 L34.8972603,36.7 C34.8972603,37.15 34.4452055,37.825 33.7671233,37.825 Z" id="Shape" :fill="!hover?'var(--blue)':'#999'" fill-rule="nonzero"></path>
                        </g>
                    </svg>
                </div>
                <div class="item" txt='费减查询' :class="{active:hover===1}" @mouseenter="hover=1" >
                    <svg viewBox="0 0 50 50" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
                        <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
                            <g id="Group-10-Copy-4" transform="translate(7.000000, 7.000000)">
                                <path d="M29.2191781,36 L6.61643836,36 C4.58219178,36 3,34.425 3,32.4 L3,3.6 C3,1.575 4.58219178,0 6.61643836,0 L32.3835616,0 C34.4178082,0 36,1.575 36,3.6 L36,29.7 C36,30.375 35.5479452,30.825 34.869863,30.825 C34.1917808,30.825 33.739726,30.375 33.739726,29.7 L33.739726,3.6 C33.739726,2.925 33.0616438,2.25 32.3835616,2.25 L6.61643836,2.25 C5.93835616,2.25 5.26027397,2.925 5.26027397,3.6 L5.26027397,32.4 C5.26027397,33.075 5.93835616,33.75 6.61643836,33.75 L29.2191781,33.75 C29.8972603,33.75 30.3493151,34.2 30.3493151,34.875 C30.3493151,35.55 29.8972603,36 29.2191781,36 Z" id="Shape-Copy" :fill="hover===1?'var(--blue)':'#999'" fill-rule="nonzero"></path>
                                <polygon id="Path" :fill="hover===1?'var(--blue)':'#999'" points="22.4135625 10 19.0865913 14.0211827 15.8787404 10 12 10 15.9973413 14.7505721 12 14.7505721 12 17.2670673 17.3396827 17.2670673 17.3396827 19.6010962 12 19.6010962 12 22.0050481 17.3396827 22.0050481 17.3396827 26.5892933 20.7220817 26.5892933 20.7220817 22.0050481 26.1729231 22.0050481 26.1729231 19.6010962 20.7220817 19.6010962 20.7220817 17.2670673 26.1729231 17.2670673 26.1729231 14.7505721 22.1677067 14.7505721 26.1729231 10"></polygon>
                                <rect id="Rectangle-100" fill="#FFFFFF" x="0" y="9" width="8" height="19"></rect>
                                <g id="Group-3" transform="translate(0.000000, 13.000000)" :fill="hover===1?'var(--blue)':'#999'">
                                    <rect id="Rectangle-103" x="0" y="0" width="8" height="2" rx="1"></rect>
                                    <rect id="Rectangle-103-Copy" x="0" y="4" width="8" height="2" rx="1"></rect>
                                    <rect id="Rectangle-103-Copy-2" x="0" y="8" width="8" height="2" rx="1"></rect>
                                </g>
                            </g>
                        </g>
                    </svg>
                </div>
                <div class="item" txt='年费监控' :class="{active:hover===2}" @mouseenter="hover=2" >
                    <svg viewBox="0 0 50 50" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
                        <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
                            <g id="监控-copy" transform="translate(7.000000, 7.000000)" fill-rule="nonzero">
                                <rect id="Rectangle-path" fill="#000000" opacity="0" x="0" y="0" width="36" height="36"></rect>
                                <path d="M2.26666667,2.26666667 L2.26666667,22.6666667 L31.7333333,22.6666667 L31.7333333,2.26666667 L2.26666667,2.26666667 Z M0,0 L34,0 L34,24.9333333 L0,24.9333333 L0,0 Z M6.8,31.7333333 L27.2,31.7333333 L27.2,34 L6.8,34 L6.8,31.7333333 Z M15.8666667,22.6666667 L18.1333333,22.6666667 L18.1333333,31.7333333 L15.8666667,31.7333333 L15.8666667,22.6666667 Z M16.9728,19.8901511 L27.9516267,7.55344 L26.2585778,6.04656 L17.0655822,16.3765155 L10.7651555,8.50030221 L5.78030221,15.53392 L7.62990221,16.8446578 L10.8748622,12.2659911 L16.9728,19.8901511 Z" id="Shape" :fill="hover===2?'var(--blue)':'#999'"></path>
                            </g>
                        </g>
                    </svg>
                </div>
                <div class="item" txt='商标查询' :class="{active:hover===3}" @mouseenter="hover=3">
                    <svg width="50px" height="50px" viewBox="0 0 50 50" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
                        <defs>
                            <polygon id="path-1" points="1.65853659e-05 0.0331717418 33.9667878 0.0331717418 33.9667878 33.9585871 1.65853659e-05 33.9585871"></polygon>
                        </defs>
                        <g id="官网" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
                            <g id="首页" transform="translate(-970.000000, -489.000000)">
                                <g id="Group-27-Copy" transform="translate(970.000000, 489.000000)">
                                    <g id="分组" transform="translate(8.000000, 7.000000)">
                                        <g>
                                            <mask id="mask-2" fill="white">
                                                <use xlink:href="#path-1"></use>
                                            </mask>
                                            <g id="Clip-2"></g>
                                            <path d="M31.5407385,0.0331717418 L2.42628976,0.0331717418 C1.08698,0.0331717418 1.65853659e-05,1.11881121 1.65853659e-05,2.45648965 L1.65853659e-05,31.5354348 C1.65853659e-05,32.8729476 1.08698,33.9585871 2.42628976,33.9585871 L24.8685288,33.9585871 C25.3021117,33.9587527 25.7026068,33.7277515 25.9193361,33.3529233 C26.1360239,32.9779708 26.1360239,32.5160926 25.9193361,32.1410987 C25.7026068,31.7663118 25.3021117,31.5353106 24.8685288,31.5354348 L2.42628976,31.5354348 L2.42628976,2.45648965 L31.5407385,2.45648965 L31.5407385,24.8713934 C31.5405727,25.3044482 31.7718141,25.704497 32.1470995,25.9209208 C32.5225507,26.1373861 32.9849922,26.1373861 33.360402,25.9209208 C33.7356873,25.704497 33.9669702,25.3044482 33.9668044,24.8713934 L33.9668044,2.45648965 C33.9668044,1.11881121 32.879841,0.0331717418 31.5407385,0.0331717418" id="Fill-1" :fill="hover===3?'var(--blue)':'#999'" mask="url(#mask-2)"></path>
                                        </g>
                                        <path d="M7.25585118,13.2888088 C6.56220995,13.2888088 6,13.8364981 6,14.5122241 C6,15.1877828 6.56220995,15.7356394 7.25585118,15.7356394 L14.2226103,15.7356394 C14.9162945,15.7356394 15.4784615,15.1877828 15.4784615,14.5122241 C15.4784615,13.8364981 14.9162945,13.2888088 14.2226103,13.2888088 L7.25585118,13.2888088 Z M28.6046775,7.22320622 C28.6046775,6.54764749 28.0424675,6 27.3488263,6 L7.25585118,6 C6.56238165,6 6.00017169,6.54764749 6.00017169,7.22320622 C6.00017169,7.89880678 6.56238165,8.44662152 7.25585118,8.44662152 L27.3488263,8.44662152 C28.0424675,8.44662152 28.6046775,7.89897403 28.6046775,7.22320622 L28.6046775,7.22320622 Z M16.0465949,20.9862729 C16.0465949,17.9522799 18.5832357,15.4811549 21.6977106,15.4811549 C24.8122284,15.4811549 27.3488263,17.9522799 27.3488263,20.9862729 C27.3488263,24.0203495 24.8122284,26.4914745 21.6977106,26.4914745 C18.5832357,26.4914745 16.0465949,24.0203495 16.0465949,20.9862729 L16.0465949,20.9862729 Z M28.280735,25.6693969 C29.3063883,24.3123836 29.8598419,22.67149 29.8605287,20.9862729 C29.8549916,16.5967301 26.2037173,13.0397184 21.6977106,13.0343243 C17.1917467,13.0397184 13.5404296,16.5967301 13.5348925,20.9862729 C13.5404296,25.3758994 17.1917467,28.932911 21.6977106,28.9383051 C23.4282081,28.9383051 25.1134644,28.3999404 26.5049534,27.399314 L30.8551484,31.6369858 C31.213172,31.9901111 31.7546929,32.0969478 32.225562,31.907318 C32.6963023,31.7178554 33.0024745,31.2696434 32.9999849,30.773428 C33.0006288,30.4486948 32.8686824,30.1370497 32.6333337,29.9072359 L28.280735,25.6693969 Z" id="Fill-3" :fill="hover===3?'var(--blue)':'#999'"></path>
                                        <path d="M8.04739744,20 C7.46889096,20 7,20.447699 7,20.9999829 C7,21.5521643 7.46889096,22 8.04739744,22 L10.9526026,22 C11.531109,22 12,21.5521643 12,20.9999829 C12,20.447699 11.531109,20 10.9526026,20 L8.04739744,20 Z" id="Fill-5" :fill="hover===3?'var(--blue)':'#999'"></path>
                                    </g>
                                </g>
                            </g>
                        </g>
                    </svg>
                </div>
            </div>
        </div>
        <div class="pro">
            <div class="box" v-show="!hover">
                <h2 style="text-align:center">专利申请费用计算器</h2>
                <div class="calc">
                    <div >
                        <div class="item" v-for="(val,index) in calc[0]" :key="index">
                            <h4>{{val.title}}:</h4>
                            <select :name="val.key"   class="form-control" v-model="fm[val.key]">
                                <option v-for="(v,i) in val.data" :key="i" :value="val.is_key?i:v">{{v}}</option>
                            </select>
                        </div>
                    </div>
                    <div >
                        <div class="item" v-for="(val,index) in calc[1]" :key="index">
                            <h4>{{val.title}}:</h4>
                            <select :name="val.key"   class="form-control" v-model="fm[val.key]">
                                <option v-for="(v,i) in val.data" :key="i" :value="val.is_key?i:v">{{v}}</option>
                            </select>
                        </div>
                    </div>
                    <div class="count">
                        <div>
                            <h5>费用合计</h5>
                            <b>约为{{total}}元</b>
                        </div>
                        <div>
                            <h5>费减后的价格</h5> 
                            <b>约为{{reduction_total}}元</b>
                        </div>
                        <p style="color:blue">查询费减资质享受费减</p>
                        <button class="btn" @click="calc_fee"> <img src="@/assets/calc.svg" alt=""> 计算</button>
                    </div>
                </div>
            </div>
            <div class="box" v-show="hover===1">
                <h2 style="text-align:center;padding-bottom:20px">费减查询</h2>
                <div class="input-group input-group-lg">
                    <input style="border-radius: 6px;" type="text" class="form-control" placeholder="请输入姓名或企业名称" v-model="select_fee.beianrmc">
                </div>
                <div class="input-group input-group-lg" style="padding-top:20px">
                    <input type="text" class="form-control" placeholder="请输入身份证或社会统一信用代码" aria-describedby="sizing-addon1" v-model="select_fee.zhengjianhm">
                    <span class="input-group-addon seach" @click="select_fee_func" >一键查询</span>
                </div>
            </div>
            <div class="box" v-show="hover===2">
                <h2 style="text-align:center;padding-bottom:20px">注册登陆即可免费体验</h2>
                <div class="flex year">
                    <img @click="jmp" src="@/assets/import.png" alt="">
                    <img @click="jmp" src="@/assets/msg.png" alt="">
                </div>
            </div>
            <div class="box" v-show="hover===3">
                <h2 style="text-align:center">商标分类一键查询</h2>
                <div id="seach">
                    <input v-model="keyword" type="text" placeholder="输入主营业务或者行业关键词查看所对应的商标类别" @keyup.enter="keyword&&$router.push({name:'trademark_seach',query:{keyword}})">
                    <button class="btn" @click="keyword&&$router.push({name:'trademark_seach',query:{keyword}})" >搜索</button>
                </div>
                <router-link target="_blank" to="trademark" class="trademark_link">使用商标分类查询</router-link>

            </div>
        </div>
    </div>
</template>
<script>
import {cal_case_money,craw_query} from "@/assets/api"
import {swal} from 'vue-swal'
export default {
    data(){
        return {
            keyword:'',
            reduction_total:0,
            total:0,
            hover:0,
            select_fee:{
                beianrmc:'',
                zhengjianhm:'',
                // beianrmc:'浙江骄栀科技有限公司',
                // zhengjianhm:'91330185MA27WGF78G'
            },
            fm:{
                type:'',
                applicant_type:'',
                applicant_num:'',
                facilitator_vip:0, 
                is_urgent:'不加急',
                is_speed_up:0,
                is_protect:0,
                has_guarantee_fee:0
            },
            calc:[
                [
                    {
                        title:'专利类型',
                        key:'type',
                        is_key:false,
                        data:[
                            '发明',
                            '实用新型',
                            '外观设计'
                        ]
                    },
                    {
                        title:'申请人类型',
                        key:'applicant_type',
                        is_key:false,
                        data:[
                            '个人',
                            '企业',
                        ]
                    },
                    {
                        title:'申请人个数',
                        key:'applicant_num',
                        is_key:false,
                        data:[
                            '单人',
                            '多人',
                        ]
                    },
                    {
                        title:'代理人等级',
                        key:'facilitator_vip',
                        is_key:true,
                        data:[
                            '专利工程师',
                            '执业代理人',
                            '资深代理人'
                        ]
                    }
                ],
                [
                    {
                        title:'撰稿时间',
                        key:'is_urgent',
                        is_key:false,
                        data:[
                            '不加急',
                            '加急'
                        ]
                    },
                    {
                        title:'加强保护',
                        key:'is_protect',
                        is_key:true,
                        data:[
                            '不需要',
                            '需要',
                        ]
                    },
                    {
                        title:'加快审查',
                        key:'is_speed_up',
                        is_key:true,
                        data:[
                            '不需要',
                            '需要',
                        ]
                    },
                    {
                        title:'担保授权',
                        key:'has_guarantee_fee',
                        is_key:true,
                        data:[
                            '不需要',
                            '需要',
                        ]
                    }
                ]
            ]
        }
    },
    methods:{
        jmp(){
            if(localStorage.getItem('client_id')){
                window.open(this.cms+'/year_list')
            }else{
                this.$router.push('login')
            }
        },
        calc_fee(){
            if(!this.fm.type||!this.fm.applicant_type||!this.fm.applicant_num){
                swal('请完整填写','派智知识管家','warning')
                return
            }
            const fm={...this.fm,facilitator_vip:this.fm.facilitator_vip+1}
            cal_case_money(fm).then(res=>{
                if(res){
                    this.reduction_total=res.data.reduction_total
                    this.total=res.data.total
                    this.TJ_event('专利计算器','',res.data.reduction_total+'###'+res.data.total)
                }
            })
        },
        select_fee_func(){

            if(!this.select_fee.beianrmc || !this.select_fee.zhengjianhm){
                swal('请填写企业名称和信用代码','派智知识管家','warning')
                return
            }
            craw_query(this.select_fee).then(res=>{
                const data=res.data.verify===true
                this.TJ_event('费减查询','',data?'合格':'不合格')
                let content={
                    className:'fj',
                    text:'未查询到该账户的备案信息，或备案不合格',
                    icon:'error',
                    button:'派智会员可享免费费减代办',
                    closeOnEsc: false,
                }
                if(data){
                    content={
                        className:'fj',
                        text:'费减备案合格',
                        icon:'success',
                        button:'99元申请外观专利',
                        closeOnEsc: false,
                    }
                }
                swal(content).then(()=>{
                    this.$router.push(data?'activity':'login')
                })
            })
        }
    }
}
</script>

